#pragma once
#include "ado/stdafx.h"
#include <iostream>
#include <map>
#include "public.h"


typedef struct TDataBase {
    std::string classname;
    std::string database; 
} tDataBase;





class  ADOLIB1_API DBConfigMap : public mapStrStrStr
{
public:
    DBConfigMap() 
    {
        //default database
        (*this)["default"]["dbname"]    = "jx88";
        
        //database zk666
        (*this)["zk666"]["dbhost"]    = "localhost";
        (*this)["zk666"]["dbuser"]    = "root";
        (*this)["zk666"]["dbpass"]    = "niliu2011";
        (*this)["zk666"]["dbname"]    = "zk666";
        (*this)["zk666"]["dbprefix"]  = "le_";
        (*this)["zk666"]["dbcharset"] = "set names utf8";
    
        //database jx88    
        (*this)["jx88"]["dbhost"]    = "localhost";
        (*this)["jx88"]["dbuser"]    = "root";
        (*this)["jx88"]["dbpass"]    = "";
        (*this)["jx88"]["dbname"]    = "jx88";
        (*this)["jx88"]["dbprefix"]  = "le_";
        (*this)["jx88"]["dbcharset"] = "set names utf8";
    }
};
